This is just a quicky program to show how to play an .AVI file in any window you choose, instead of the default "random" window. The key to this is to get the "handle" (hWnd) of the window you want and set it as the window to use for the next operation (playing the .AVI) If you print out the code and text, it should be annotated enough for you to figure it out.